/* General Styling */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    background: linear-gradient(135deg, #0f3460, #533483);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    color: #fff;
    margin: 50px auto;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.02);
}

/* Search Bar */
.search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.search input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search input:focus {
    background: rgba(255, 255, 255, 0.2);
}

.search button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #e94560;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search button:hover {
    background: #ff2e63;
}

.search button img {
    width: 24px;
}

/* Weather Info */
.weather {
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.weather-icon {
    width: 150px;
    margin-top: 20px;
    animation: fadeIn 1s;
}

.weather h1 {
    font-size: 60px;
    font-weight: 600;
}

.weather h2 {
    font-size: 35px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 30px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
}

.col img {
    width: 40px;
    margin-right: 10px;
}

.humidity, .wind {
    font-size: 22px;
}

/* Error Message */
.error {
    display: none;
    text-align: center;
    font-size: 14px;
    color: #ff2e63;
    margin-top: 15px;
    animation: fadeIn 0.5s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}